# == Schema Information
# Schema version: 38
#
# Table name: event_pics
#
#  id           :integer(11)     not null, primary key
#  parent_id    :integer(11)
#  content_type :string(255)
#  filename     :string(255)
#  thumbnail    :string(255)
#  size         :integer(11)
#  width        :integer(11)
#  height       :integer(11)
#  event_id     :integer(11)
#  created_at   :datetime
#  updated_at   :datetime
#

class EventPic < ActiveRecord::Base
  belongs_to :event
  
  has_attachment :processor => :rmagick,
                 :content_type => :image,
                 :storage => :s3,
                 :max_size => 500.kilobytes,
                 :resize_to => "240x180>",
                 :thumbnails => {:thumb => "120x80>"}
                                 
  validates_as_attachment
end
